<?php if(isset($closeModalbox) && $closeModalbox)
	echo "<div id='closeModalbox'></div>";
if($ajax->isAjax())
{
	echo $ajax->form('View', 'user', array('model' => 'User', 'url' => array('controller' =>
		'users', 'action' => 'view'), 'update' => 'MB_content', 'complete' =>
		'closeModalbox()')); 
    echo $this->element('user_forms/ajax/admin_view');
}
else
{
    echo $this->element('user_forms/default/admin_view');
}
?>


